﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPageAdmin.master" AutoEventWireup="true" CodeFile="EditMovie.aspx.cs" Inherits="Admin_EditMovie" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table style="width: 100%; height: 242px;">
                <tr>
                    <td colspan="3" 
                        style="border-bottom-style: outset; border-bottom-width: 1px; height: 77px;">
                        <asp:Label ID="lblMovies" runat="server" Font-Size="16pt" ForeColor="#00CCFF" 
                            Text="Movies List"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 12px">
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 24px">
                        <asp:Label ID="lblMoviesPlaying" runat="server" Font-Bold="True" 
                            Font-Size="12pt" ForeColor="#99CCFF" Text="Movies playing"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblSearch0" runat="server" Text="Search movies name:"></asp:Label>
                    </td>
                    <td colspan="2" style="height: 24px">
                        <asp:TextBox ID="TextBox2" runat="server" Height="21px" Width="265px"></asp:TextBox>
                        <asp:Button ID="btnSearch0" runat="server" BorderStyle="Inset" 
                            BorderWidth="1px" onclick="btnSearch0_Click" style="margin-left: 98px" 
                            Text="Search" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 24px">
                        <asp:Label ID="lblError1" runat="server" ForeColor="Red" Text="Label" 
                            Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 15px">
                        <asp:GridView ID="grvData0" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" OnRowCommand="btnOption0_Click" 
                            Width="99%" onpageindexchanging="grvData0_PageIndexChanging">
                            <Columns>
                                <asp:TemplateField HeaderText="Movie ID">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMovieID0" runat="server" Text='<%# Eval("MovieID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Movie Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMovieName0" runat="server" Text='<%# Eval("MovieName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Status">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUpStatus0" runat="server" Height="16px" Width="179px">
                                            <asp:ListItem Value="0">Movies</asp:ListItem>
                                            <asp:ListItem Value="1">No Movies</asp:ListItem>
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblStatus0" runat="server" Text='<%# Bind("StatusM") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Notes">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEditNotes0" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblNotes0" runat="server" Text='<%# Eval("Notes") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:ButtonField CommandName="Edit" HeaderText="Edit" Text="Edit" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 12px">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 12px">
                        <asp:Label ID="lblMoviesReleasedSoon" runat="server" Font-Bold="True" 
                            Font-Size="12pt" ForeColor="#33CCFF" Text="Movies released soon"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblSearch" runat="server" Text="Search movies name:"></asp:Label>
                    </td>
                    <td colspan="2" style="height: 12px">
                        <asp:TextBox ID="TextBox1" runat="server" Width="265px"></asp:TextBox>
                        <asp:Button ID="btnSearch" runat="server" BorderStyle="Inset" BorderWidth="1px" 
                            onclick="btnSearch_Click" style="margin-left: 98px" Text="Search" />
                    </td>
                </tr>
                <tr>
                    <td colspan="3" style="height: 12px">
                        <asp:Label ID="lblError2" runat="server" ForeColor="Red" Text="Label" 
                            Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:GridView ID="grvData" runat="server" AllowPaging="True" 
                            AllowSorting="True" AutoGenerateColumns="False" Width="99%" 
                            OnRowCommand="btnOption_Click" 
                            onpageindexchanging="grvData_PageIndexChanging" >
                            <Columns>
                                <asp:TemplateField HeaderText="Movie ID">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMovieID" runat="server" Text='<%# Eval("MovieID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Movie Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lblMovieName" runat="server" Text='<%# Eval("MovieName") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Status">
                                    <EditItemTemplate>
                                        <asp:DropDownList ID="ddlUpStatus" runat="server" Height="16px" Width="179px">
                                            <asp:ListItem Value="0">Movies</asp:ListItem>
                                            <asp:ListItem Value="1">No Movies</asp:ListItem>
                                        </asp:DropDownList>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblStatus" runat="server" Text='<%# Bind("StatusM") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Notes">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="txtEditNotes" runat="server"></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        <asp:Label ID="lblNotes" runat="server" Text='<%# Eval("Notes") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:ButtonField HeaderText="Edit" Text="Edit" CommandName="Edit" />
                                <asp:ButtonField HeaderText="Delete" Text="Delete" CommandName="Delete" />
                            </Columns>
                            <HeaderStyle CssClass="header" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <asp:Label ID="lblError" runat="server" ForeColor="Red" Text="Label" 
                            Visible="False"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                    <td>
                        &nbsp;</td>
                    <td>
                        <asp:Button ID="btnAdd" runat="server" BorderStyle="Outset" BorderWidth="1px" 
                            onclick="btnAdd_Click" Text="Add new" />
                    </td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>

